﻿using Uber.WebUI.Models;

namespace Uber.WebUI.Controllers
{
    using System.Web.Mvc;
    using Uber.Core.Service;

    [Authorize(Roles = "nub")]
    public class BuyCreditsController : Controller
    {
        private readonly IAccounts s;
        private readonly IEncryptor encryptor;

        public BuyCreditsController(IAccounts s, IEncryptor encryptor)
        {
            this.s = s;
            this.encryptor = encryptor;
        }

        public ActionResult Index()
        {
            return View(new BuyCreditsDisplay
                            {
                                //Id = encryptor.EncryptToString(s.GetId(User.Identity.Name).ToString())
                            });
        }
    }
}